﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyShopCD.BL;

namespace QuanLyShopCD.GUI
{
    public partial class tinh_danhmuc : Form
    {
        public tinh_danhmuc()
        {
            InitializeComponent();
        }
        tinh_dm tdm;
        private void bt_them_Click(object sender, EventArgs e)
        {
            tdm = new tinh_dm(txt_madm,txt_tendm,dataGridView1);
            tdm.them();
        }

        private void bt_sua_Click(object sender, EventArgs e)
        {
            tdm = new tinh_dm(txt_madm, txt_tendm, dataGridView1);
            tdm.sua();
        }

        private void bt_xoa_Click(object sender, EventArgs e)
        {
            tdm = new tinh_dm(txt_madm, txt_tendm, dataGridView1);
            tdm.xoa();
        }

        private void tinh_danhmuc_Load(object sender, EventArgs e)
        {
            tdm = new tinh_dm(txt_madm, txt_tendm, dataGridView1);
            tdm.hienthi();
        }
    }
}
